﻿/** 
 * Copyright / Licence
 * <p>
 * You are free:
 * <li>to Share — to copy, distribute and transmit the work
 * <li>to Remix — to adapt the work
 * </p>
 * <p>
 * Under the following conditions:
 * <li>Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
 * <li>Noncommercial — You may not use this work for commercial purposes.
 * <li>Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
 * </p>
 * <p>
 * More information can be found here:
 * <br/>
 * http://creativecommons.org/licenses/by-nc-sa/3.0/
 * </p>
 * <p>
 * Please contact Manfred Weber [manfred.weber@gmail.com] if you require a commercial licence
 * </p>
 */
 package org.dschini.data.ui.maps {

	import flash.events.Event;
	import org.dschini.data.Data;
	
	public class MapEvent extends Event
	{
		public static var CLICK:String = "MapEvent.CLICK";
		public static var DOUBLE_CLICK:String = "MapEvent.DOUBLE_CLICK";
		public static var MOUSE_UP:String = "MapEvent.MOUSE_UP";
		public static var MOUSE_DOWN:String = "MapEvent.MOUSE_DOWN";
		public static var MOUSE_OVER:String = "MapEvent.MOUSE_OVER";
		public static var MOUSE_OUT:String = "MapEvent.MOUSE_OUT";
		public static var MOUSE_MOVE:String = "MapEvent.MOUSE_MOVE";
		public static var MOUSE_WHEEL:String = "MapEvent.MOUSE_WHEEL";
		
		public var data:Data;
		public var event:Event;
		
		public function MapEvent(event:Event, data:Data, type:String, bubbles:Boolean = true, cancelable:Boolean = false)
		{
			this.data = data;
			this.event = event;
			super(type, bubbles,cancelable);
		}
	}
	
}
